<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true"
    CodeFile="ProductsComparer.aspx.cs" Inherits="ProductsComparer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <h2>
        <%=Resources.Language.ProductComparsion%></h2>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="hfSortDirection" Value="1" runat="server" />
            <input id="hfToDelete" type="hidden" runat="server" enableviewstate="false" />
            <div style="width: 100%; overflow: hidden;">
            <table class="compare-grid" cellpadding="0">
                <asp:Repeater ID="rptProductsCompare" runat="server" EnableViewState="true">
                    <HeaderTemplate>
                        <tr id="tMiniature" class="compare-grid-row" runat="server">
                            <td>
                            </td>
                        </tr>
                        <tr id="tName" class="compare-grid-row-alternate" runat="server">
                            <td>
                                <asp:LinkButton ID="lbNameSort" runat="server" OnCommand="Sort_Command" CommandName="SortName"><%=Resources.Language.Product %>:</asp:LinkButton>
                                <asp:LinkButton ID="lbNameSortAscending" runat="server" OnCommand="Sort_Command" CommandName="SortNameAscending"
                                    CommandArgument='<%# Eval("Id")%>'>&laquo;</asp:LinkButton>
                                <asp:LinkButton ID="lbNameSortDescending" runat="server" OnCommand="Sort_Command" CommandName="SortNameDescending"
                                    CommandArgument='<%# Eval("Id")%>'>&raquo;</asp:LinkButton>
                            </td>
                        </tr>
                        <tr id="tProducer" class="compare-grid-row" runat="server">
                            <td>
                                <asp:LinkButton ID="lbProducerSort" runat="server" OnCommand="Sort_Command" CommandName="SortProducer"><%=Resources.Language.Producer %>:</asp:LinkButton>
                                <asp:LinkButton ID="lbProducerSortAscending" runat="server" OnCommand="Sort_Command" CommandName="SortProducerAscending"
                                    CommandArgument='<%# Eval("Id")%>'>&laquo;</asp:LinkButton>
                                <asp:LinkButton ID="lbProducerSortDescending" runat="server" OnCommand="Sort_Command" CommandName="SortProducerDescending"
                                    CommandArgument='<%# Eval("Id")%>'>&raquo;</asp:LinkButton>
                            </td>
                        </tr>
                        <tr id="tPrice" class="compare-grid-row-alternate" runat="server">
                            <td>
                                <asp:LinkButton ID="lbPriceSort" runat="server" OnCommand="Sort_Command" CommandName="SortPrice"><%=Resources.Language.Price %>:</asp:LinkButton>
                                <asp:LinkButton ID="lbPriceSortAsending" runat="server" OnCommand="Sort_Command"
                                    CommandName="SortPriceAscending" CommandArgument='<%# Eval("Id")%>'>&laquo;</asp:LinkButton>
                                <asp:LinkButton ID="lbPropertySortDescending" runat="server" OnCommand="Sort_Command"
                                    CommandName="SortPriceDescending" CommandArgument='<%# Eval("Id")%>'>&raquo;</asp:LinkButton>
                            </td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr id="tItemRow" class="compare-grid-row" runat="server">
                            <td>
                                <asp:LinkButton ID="lbPropertySort" runat="server" OnCommand="Sort_Command" CommandName="SortProperty"
                                    CommandArgument='<%# Eval("Id")%>'><%# Eval("Name") %>: </asp:LinkButton>
                                <asp:LinkButton ID="lbPropertySortAscending" runat="server" OnCommand="Sort_Command"
                                    CommandName="SortPropertyAscending" CommandArgument='<%# Eval("Id")%>'>&laquo;</asp:LinkButton>
                                <asp:LinkButton ID="lbPropertySortDescending" runat="server" OnCommand="Sort_Command"
                                    CommandName="SortPropertyDescending" CommandArgument='<%# Eval("Id")%>'>&raquo;</asp:LinkButton>
                                <asp:HiddenField ID="hfPropertyID" Value='<%# Eval("Id")%>' runat="server" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr id="tItemRow" class="compare-grid-row-alternate" runat="server">
                            <td>
                                <asp:LinkButton ID="lbPropertySort" runat="server" OnCommand="Sort_Command" CommandName="SortProperty"
                                    CommandArgument='<%# Eval("Id")%>'><%# Eval("Name") %>:</asp:LinkButton>
                                <asp:LinkButton ID="lbPropertySortAscending" runat="server" OnCommand="Sort_Command"
                                    CommandName="SortPropertyAscending" CommandArgument='<%# Eval("Id")%>'>&laquo;</asp:LinkButton>
                                <asp:LinkButton ID="lbPropertySortDescending" runat="server" OnCommand="Sort_Command"
                                    CommandName="SortPropertyDescending" CommandArgument='<%# Eval("Id")%>'>&raquo;</asp:LinkButton>
                                <asp:HiddenField ID="hfPropertyID" Value='<%# Eval("Id")%>' runat="server" />
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
            </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
